<script setup>
// HomePage将通过路由加载，不需要在这里导入
</script>

<template>
  <div>
    <div class="nav-test" v-if="showTestNav">
      <button @click="goToActivated">测试激活页面</button>
      <button @click="hideTestNav">隐藏导航</button>
    </div>
    <router-view />
  </div>
</template>

<script>
export default {
  data() {
    return {
      showTestNav: true
    }
  },
  methods: {
    goToActivated() {
      this.$router.push('/activated')
    },
    hideTestNav() {
      this.showTestNav = false
    }
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#app {
  height: 100vh;
  width: 100vw;
  position: relative;
  margin: 0;
  padding: 0;
}

/* 移动端视口设置 */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* 隐藏滚动条但保持功能 */
::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* 针对移动端的触摸优化 */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
}

.nav-test {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
}

.nav-test button {
  margin: 0 5px;
  padding: 5px 10px;
  background: #7B68EE;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
</style>
